<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./simpleJquery.js"></script>
</head>

<body>

    <body>
        <ul id="list">
            <li class="bg">1</li>
            <li class="bg">2</li>
            <li class="bg" style="cursor:pointer;">3</li>
        </ul>
        <script>
            $("#list").addclass("fn").html();//链式调用
            $("#list li").click(function () {//事件绑定
                alert(1);
            });
            $.fn.getclass = function () {//函数扩展
                console.log(this[0].className);
            };
            $("#list").getclass();
        </script>
    </body>
</body>


</html>